package com.ghck.server.controller.events;

import org.springframework.context.ApplicationEvent;

public class RedisSyncEvent extends ApplicationEvent {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public final static int REGION = 1;
	public final static int HOSPITAL = 2;
	public final static int DEPARTMENT = 3;
	public final static int BODYPART = 4;
	public final static int DISEASE = 5;
	public final static int DISEASE_KEY = 6;

	private int type;
	
	public RedisSyncEvent(Object source,int type) {
		super(source);
		
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	
}
